<?php
/**
 * @author: 吴昊天<442384644@qq.com>
 * @day: 2020/7/8
 */
declare (strict_types=1);

namespace app\services\order;

use app\dao\order\TurntableDao;
use app\services\BaseServices;

/**
 *
 * Class StoreCartServices
 * @package app\services\order
 * @method updateCartStatus($cartIds) 修改购物车状态
 * @method getUserCartNum(int $uid, string $type, int $numType) 购物车数量
 * @method deleteCartStatus(array $cartIds) 修改购物车状态
 */
class TurntableServices extends BaseServices
{

    /**
     * StoreCartServices constructor.
     * @param TurntableDao $dao
     */
    public function __construct(TurntableDao $dao)
    {
        $this->dao = $dao;
    }

    public function getOne($where)
    {
        return $this->dao->getOnePrize($where);
    }

    public function getList($where = [])
    {
        return $this->dao->getList($where);
    }

    public function update($id, $data)
    {
        return $this->dao->updateTurntable($id, $data);
    }


}
